<?php
/**
 * 获取所有user_material点赞相加的数据
 */
require_once dirname(__DIR__) . "/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\model\Topic;
use app\model\Video;
use app\cls\tom\FFmpeg;
use app\cls\tom\RedisKeyFactory;

$type=$_REQUEST['type'];
if(empty($type)){
    $type="no_del";
}

$redis = SysResource::getRedis();

if($type=="no_del"){
    $k1 = REDIS_PREFIX."user_material_love_1";
    $k2 = REDIS_PREFIX."user_material_love_2";
    $k3 = REDIS_PREFIX."user_material_love_3";
    $k4 = REDIS_PREFIX."user_material_love_4";
    $k5 = REDIS_PREFIX."user_material_love_5";
}else if($type=="del"){
    $k1 = REDIS_PREFIX."user_material_love_del_1";
    $k2 = REDIS_PREFIX."user_material_love_del_2";
    $k3 = REDIS_PREFIX."user_material_love_del_3";
    $k4 = REDIS_PREFIX."user_material_love_del_4";
    $k5 = REDIS_PREFIX."user_material_love_del_5";
}

$k11=$redis->lRange($k1,0,-1);
$k22=$redis->lRange($k2,0,-1);
$k33=$redis->lRange($k3,0,-1);
$k44=$redis->lRange($k4,0,-1);
$k55=$redis->lRange($k5,0,-1);
var_dump($k11);
var_dump($k22);
var_dump($k33);
var_dump($k44);
var_dump($k55);